<?php
import("Think.Core.Model.AdvModel");
class TypeModel extends AdvModel{
	protected $autoCreateTimestamps = 'create_time';
	protected $autoUpdateTimestamps = 'update_time';
	protected $autoTimeFormat = 'Y-m-d H:i:s';
	
	protected $autoReadRelations = true;
	protected $_link = array(
			'mapping_type' => HAS_MANY,
			'class_name' => 'Type',
			'foreign_key' => 'id',
			'parent_key' => 'parent_id',
			'mapping_name' => 'sub_types',
			'mapping_order' => 'id asc '
	);
	
}
?>